<?php /* Template_ 2.2.3 2011/11/14 22:05:59 D:\workspace_php\UI_TOOL\web\_tmpl\SynonymValidation.html */
$TPL_list_1=empty($TPL_VAR["list"])||!is_array($TPL_VAR["list"])?0:count($TPL_VAR["list"]);?>
<!-- container -->
	<div id="container">
		<!-- content -->
		<div id="content">
			<h1>Synonym <span class="green">Validation</span></h1>
			<table width="98%" cellspacing=0 cellpadding=0 border=0 class="list_tb" >
				<tr>
					<td  class="info"colspan=6>total : <?php echo $TPL_VAR["paging"]["total"]?> <td>
				</tr>
				<tr >
					<td class="title tc" width="50">ID</td>
					<td class="title" width="100">Main</td>
					<td class="title" width="150">NER</td>
					<td class="title" >Synoyms Candidates</td>
					<td class="title" width="150">Operation</td>
					<td class="title" width="50">Status</td>
				</tr>
<?php if($TPL_list_1){foreach($TPL_VAR["list"] as $TPL_V1){?>
				<tr>
					<td class="cont tc"><?php echo $TPL_V1["CLUSTER_CD"]?></td>
					<td class="cont" id="represent_td_<?php echo $TPL_V1["CLUSTER_CD"]?>"><?php echo $TPL_V1["CANDIDATE_NM"]?></td>
					<td class="cont">
						<select id="ner_<?php echo $TPL_V1["CLUSTER_CD"]?>" onChange="setNer(this.value,<?php echo $TPL_V1["CLUSTER_CD"]?>)">
							<option value="">--SELECT--</option>
							<!-- <?php if(is_array($TPL_R2=($TPL_VAR["select_opt"]))&&!empty($TPL_R2)){foreach($TPL_R2 as $TPL_V2){?> -->
								<!-- <?php if($TPL_V2["NER_CD"]==$TPL_V1["NER_CD"]){?> -->
									<option value="<?php echo $TPL_V2["NER_CD"]?>" selected="selected"><?php echo $TPL_V2["NER_NM"]?></option>
								<!-- <?php }else{?> -->
									<option value="<?php echo $TPL_V2["NER_CD"]?>"><?php echo $TPL_V2["NER_NM"]?></option>
								<!-- <?php }?> -->

							<!-- <?php }}?> -->
						</select>
					</td>
					<td class="cont" id="cadidate_td_<?php echo $TPL_V1["CLUSTER_CD"]?>">
						<!-- <?php if(is_array($TPL_R2=$TPL_V1["candidate"])&&!empty($TPL_R2)){foreach($TPL_R2 as $TPL_V2){?> -->
						<input name="chk_<?php echo $TPL_V1["CLUSTER_CD"]?>" type='checkbox' value="<?php echo $TPL_V2["CANDIDATE_CD"]?>"> <?php echo $TPL_V2["CANDIDATE_NM"]?> &nbsp;&nbsp;
						<!-- <?php }}?> -->
					</td>
					<td class="cont">
						<input class="button_orange" type="button" value=" C " onClick="changeRepresent(<?php echo $TPL_V1["CLUSTER_CD"]?>)">&nbsp;
						<input class="button_orange" type="button" value=" D " onClick="delCandidate(<?php echo $TPL_V1["CLUSTER_CD"]?>)">&nbsp;
						<input class="button_orange" type="button" value=' A ' onClick="openDialog(<?php echo $TPL_V1["CLUSTER_CD"]?>)">&nbsp;
						<input class="button_orange" type="button" value='Search' onClick="callTest(<?php echo $TPL_V1["CLUSTER_CD"]?>)">
					</td>
					<td id="status_td_<?php echo $TPL_V1["CLUSTER_CD"]?>" class="status_<?php echo $TPL_V1["CLUSTER_ST"]?>" rowspan=2> </td>
				</tr>
				<tr style='background-color:#efefef'>
					<td class="cont"></td>
					<td class="cont">Question</td>
					<td class="cont" colspan=2>
						<input id="question_<?php echo $TPL_V1["CLUSTER_CD"]?>" type="text" size="60">
					</td>
					<td id="operation2_td_<?php echo $TPL_V1["CLUSTER_CD"]?>" class="cont">
						<!-- <?php if($TPL_V1["CLUSTER_ST"]>1){?> -->
							<input class="button" type="button" value="RETURN" onClick="changeStatus(<?php echo $TPL_V1["CLUSTER_CD"]?>,1)">
						<!-- <?php }else{?> -->
							<input class="button" type="button" value="PENDING" onClick="changeStatus(<?php echo $TPL_V1["CLUSTER_CD"]?>,4)">
							<input class="button" type="button" value='SKIP' onClick="changeStatus(<?php echo $TPL_V1["CLUSTER_CD"]?>,2)">
							<input class="button" type="button" value='SAVE' onClick="changeStatus(<?php echo $TPL_V1["CLUSTER_CD"]?>,3)">
						<!-- <?php }?> -->
					</td>
				</tr>
<?php }}?>
				<tr>
					<td  class="paging"colspan=6><?php echo $TPL_VAR["paging"]["page_list"]?> <td>
				</tr>
			</table>
		</div>
		<!-- //content -->
		<!-- aside -->
		<div class="aside">
			<h1>Naver <span class="green">Search</span></h1>
			<form action="./UserMAnagement.php" method="post">
				<p>
				<input name="phone" type="text" size="30" />
				<input class="button" type="submit" value="Search" />
				<br><br>
				Naver Search API Result Naver Search API Result<br>
				Naver Search API Result Naver Search API Result<br><br>
				Naver Search API Result Naver Search API Result<br>
				Naver Search API Result Naver Search API Result<br><br>
				Naver Search API Result Naver Search API Result<br>
				Naver Search API Result Naver Search API Result<br><br>
				Naver Search API Result Naver Search API Result<br>
				Naver Search API Result Naver Search API Result<br><br>
				Naver Search API Result Naver Search API Result<br>
				Naver Search API Result Naver Search API Result<br><br>
				<br>
				</p>
			</form>
		</div>
		<!-- //aside -->
	</div>
	<!-- //container -->